import request from '@/utils/request'

export function getPage(params) {
  return request({
    url: 'server/movie_list/page',
    method: 'get',
    params: params
  })
}

export function addObj(obj) {
  return request({
    url: '/server/movie_list/page',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/gen/syslog/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: `/gen/syslog/${id}`,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/gen/syslog',
    method: 'put',
    data: obj
  })
}
